<?php
class pfFieldValue {

	/**
	 * @var pfField
	 */
	private $field;

	/**
	 * Enter description here...
	 *
	 * @var string
	 */
	private $method;

	/**
	 * Enter description here...
	 *
	 * @var unknown_type
	 */
	private $default;

	/**
	 * Enter description here...
	 *
	 * @var array
	 */
	private $path;

	//eventuell behavior für feld-typen

	/**
	 * 
	 * @param pfField $field
	 * @param         $default
	 * @param string  $method
	 */
	public function __construct(pfField $field, $default = null, $method = pfForm::METHOD_POST) {
		$this->field  = $field;
		$this->method = $method;
	}

	public function setMethod($method) {
		$this->method = $method;
	}

	public function getMethod() {
		return $this->method;
	}

	/**
	 * Enter description here...
	 *
	 * @return array
	 */
	private function getPath() {
		if ($this->path === null) {
			$this->field->getName();
		}
		return $this->path;
	}

	/**
	 * Enter description here...
	 *
	 * @param unknown_type $value
	 */
	public function setDefault($value) {
		$this->default = $value;
	}

	/**
	 * Enter description here...
	 *
	 * @return unknown
	 */
	public function getDefault() {
		return $this->default;
	}

	/**
	 * Enter description here...
	 *
	 */
	public function getRaw() {
		return;
	}

	/**
	 * 
	 */
	public function getFiltered() {
		
	}

	/**
	 * Enter description here...
	 *
	 */
	public function get() {
		
	}

	/**
	 * Enter description here...
	 *
	 */
	public function exists() {
		
	}
}